/**
 * Circle实现抽象类Shape
 */
package chapter03.expand;

/**
 * @author ascent
 * @version 1.0
 */
public class Circle extends Shape {

	private int r;

	public Circle() {
	}

	/**
	 * @param r
	 */
	public Circle(int r) {
		super();
		this.r = r;
	}

	@Override
	public void draw() {
		System.out.println("画出具体的Circle图形");
	}
	
	/**
	 * 实现计算圆形的面积
	 */
	@Override
	public double getArea() {
		return Math.PI * r * r;
	}

}
